import { createApp, provide, ref } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import {createPinia} from 'pinia'
import '@/assets/css/global.css'
import 'element-plus/dist/index.css'
import { VueFlow } from '@vue-flow/core'
import '@vue-flow/core/dist/style.css'
import '@vue-flow/core/dist/theme-default.css'

const pinia = createPinia();
const app = createApp(App)

app.use(pinia);
app.use(store)
app.use(router)

const person = ref({
    name: "",
    idNumber: "",
    phone: ""
});
app.provide('person', person);
app.use(ElementPlus, { locale: zhCn, size: 'small' })
app.component('VueFlow', VueFlow) // ✅ 注册组件
app.mount('#app')
